//
//  ZhongjiangjiluCell.m
//  SSC
//
//  Created by 红沙尘 on 17/6/11.
//  Copyright © 2017年 红沙尘. All rights reserved.
//

#import "ZhongjiangjiluCell.h"

@implementation ZhongjiangjiluCell
{
    __weak IBOutlet UIView *bgView;
    __weak IBOutlet NSLayoutConstraint *lineA;
    __weak IBOutlet NSLayoutConstraint *lineB;
    
    __weak IBOutlet UILabel *qiLabel;
    __weak IBOutlet UILabel *timeLabel;
    __weak IBOutlet UILabel *amountLabel;
    __weak IBOutlet UILabel *caizhongLabel;
}

- (void)awakeFromNib {
    [super awakeFromNib];
    
    lineA.constant = LineHeight;
    lineB.constant = LineHeight;
    
    bgView.layer.borderWidth = LineHeight;
    bgView.layer.borderColor = COLOR_CCCCCC.CGColor;
}

- (void)loadWithDict:(NSMutableDictionary *)dict {

    qiLabel.text     = [NSString stringWithFormat:@"期次: %@",dict[@"issue"]];
    timeLabel.text   = [NSString stringWithFormat:@"投注时间: %@",dict[@"time"]];
    amountLabel.text = [NSString stringWithFormat:@"中奖金额: %@",dict[@"amount"]];
    caizhongLabel.text = [NSString stringWithFormat:@"彩种: %@",[MTool caizhongWithType:[dict[@"otype"] intValue]]];
}

@end
